<template>
  <h1>文章</h1>
  <p>
    <slot></slot>
  </p>
  <h1>具名插槽</h1>
  <div>
    <slot name='test' :data="{name: '张西西', age: 18}"></slot>
  </div>
</template>

<script lang="ts">
import { defineComponent } from 'vue'
export default defineComponent({
  setup() {
    return {}
  }
})
</script>